﻿using AutoMapper;
using Pay.DTO;
using Pay.Data;
using Pay.IService;
using Pay.Core;
using Pay.DTO.card;

namespace Pay.Service.AutoMapper {

    public class EntrepotMapper : IStartupDto {
        private IMapperConfigurationExpression _cfg;
        public EntrepotMapper(IMapperConfigurationExpression cfg) {
            _cfg = cfg;
        }
        public void Execute() {
            Create();
        }
        protected virtual void Create() {
            _cfg.CreateMap<Entrepot, entrepot_dto>();
            _cfg.CreateMap<entrepot_dto, Entrepot>();
        }
    }
}
